home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Form1"
- ClientHeight = 4230
- ClientLeft = 1815
- ClientTop = 2475
- ClientWidth = 4335
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 4635
- Left = 1755
- LinkTopic = "Form1"
- ScaleHeight = 4230
- ScaleWidth = 4335
- Top = 2130
- Width = 4455
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Command1"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 240
- TabIndex = 3
- Top = 960
- Width = 1695
- End
- Begin VB.CheckBox Check1
- Caption = "Check1"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 2
- Top = 240
- Width = 1215
- End
- Begin VB.HScrollBar HScroll1
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 600
- Width = 1695
- End
- Begin PicbtnLib.PicBtn PicBtn1
- Height = 1575
- Left = 240
- TabIndex = 0
- Top = 1560
- Width = 2415
- _Version = 65538
- _ExtentX = 4260
- _ExtentY = 2778
- _StockProps = 79
- Caption = "PicBtn1|Sample"
- BackColor = -2147483643
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- AutoSize = -1 'True
- ButtonColor = -2147483633
- Gap = 6
- Mode = 0
- PictureUp = "PICBTNS1.frx":0000
- Placement = 0
- MouseFocus = -1 'True
- Value = 0 'False
- Font3D = 0
- Appearance = 1
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Check1_Click()
- PicBtn1.AutoSize = Check1.Value
- End Sub
- Private Sub Command1_Click()
- Select Case Val(Left(Command1.Caption, 1))
- Case 0:
- Command1.Caption = "1 - Above text"
- PicBtn1.Placement = 1
- Case 1:
- Command1.Caption = "2 - Right of text"
- PicBtn1.Placement = 2
- Case 2:
- Command1.Caption = "3 - Below text"
- PicBtn1.Placement = 3
- Case 3:
- Command1.Caption = "4 - Center of button"
- PicBtn1.Placement = 4
- Case 4:
- Command1.Caption = "0 - Left of text"
- PicBtn1.Placement = 0
- End Select
- End Sub
- Private Sub Form_Load()
- Form1.Caption = "PicBtn Sample #1"
- Form1.Height = 3720
- Form1.Width = 3000
- Check1.Top = 240
- Check1.Left = 240
- Check1.Width = 1800
- Check1.Caption = "AutoSize"
- Check1.Value = 1
- HScroll1.Top = 600
- HScroll1.Left = 240
- HScroll1.Width = 1800
- HScroll1.Value = 6
- HScroll1.Min = 0
- HScroll1.Max = 20
- Command1.Top = 960
- Command1.Left = 240
- Command1.Height = 480
- Command1.Width = 1800
- Command1.Caption = "0 - Left of text"
- PicBtn1.Top = 1560
- PicBtn1.Left = 240
- PicBtn1.Width = 2400
- PicBtn1.Height = 1500
- End Sub
- Private Sub HScroll1_Change()
- PicBtn1.Gap = HScroll1.Value
- End Sub
-